package com.fmsz.physicalheadline.entity.news.focus;

import android.content.Intent;
import android.view.View;

import com.fmsz.physicalheadline.activitys.news.FocusSecTypeActivity;
import com.fmsz.physicalheadline.entity.news.NewsUser;

import java.util.List;

/**
 * Created by Administrator on 2016/12/19.
 */

public class RecommendData {
    private List<RecsEntity> recs;
    private boolean expire_flag;

    public boolean isExpire_flag() {
        return expire_flag;
    }

    public void setExpire_flag(boolean expire_flag) {
        this.expire_flag = expire_flag;
    }

    public List<RecsEntity> getRecs() {
        return recs;
    }

    public void setRecs(List<RecsEntity> recs) {
        this.recs = recs;
    }

    public class RecsEntity{
        private String id,user_id,dashboard_id,dashboard_data,dashboard_type,title,text,image;
        private String content_type,status,show_type,label,create_time,editor,update_time,source_link,cbs_flag,expire_flag;
        private NewsUser user;
//        private int image_type;
        private List<String> images;

        public List<String> getImages() {
            return images;
        }

        public void setImages(List<String> images) {
            this.images = images;
        }

        private int image_type;

        public String getCbs_flag() {
            return cbs_flag;
        }

        public void setCbs_flag(String cbs_flag) {
            this.cbs_flag = cbs_flag;
        }

        public String getContent_type() {
            return content_type;
        }

        public void setContent_type(String content_type) {
            this.content_type = content_type;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getDashboard_data() {
            return dashboard_data;
        }

        public void setDashboard_data(String dashboard_data) {
            this.dashboard_data = dashboard_data;
        }

        public String getDashboard_id() {
            return dashboard_id;
        }

        public void setDashboard_id(String dashboard_id) {
            this.dashboard_id = dashboard_id;
        }

        public String getDashboard_type() {
            return dashboard_type;
        }

        public void setDashboard_type(String dashboard_type) {
            this.dashboard_type = dashboard_type;
        }

        public String getEditor() {
            return editor;
        }

        public void setEditor(String editor) {
            this.editor = editor;
        }

        public String getExpire_flag() {
            return expire_flag;
        }

        public void setExpire_flag(String expire_flag) {
            this.expire_flag = expire_flag;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public int getImage_type() {
            return image_type;
        }

        public void setImage_type(int image_type) {
            this.image_type = image_type;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public String getShow_type() {
            return show_type;
        }

        public void setShow_type(String show_type) {
            this.show_type = show_type;
        }

        public String getSource_link() {
            return source_link;
        }

        public void setSource_link(String source_link) {
            this.source_link = source_link;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        public NewsUser getUser() {
            return user;
        }

        public void setUser(NewsUser user) {
            this.user = user;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public void click(View view){
            Intent intent = new Intent();
            intent.setClass(view.getContext(), FocusSecTypeActivity.class);
            intent.putExtra("link",id);
            intent.putExtra("dashboard_id",dashboard_id);
            intent.putExtra("dashboard_type",dashboard_type);
            intent.putExtra("dashboard_data",dashboard_data);
            view.getContext().startActivity(intent);
        }
    }
}
